package com.yyysj.system.service;

import com.yyysj.common.core.domain.Result;
import com.yyysj.common.core.domain.TableDataInfo;
import com.yyysj.system.domain.dto.QuestionAddDTO;
import com.yyysj.system.domain.dto.QuestionEditDTO;
import com.yyysj.system.domain.dto.QuestionQueryDTO;
import com.yyysj.system.domain.vo.QuestionDetailVO;


public interface IQuestionService {
    TableDataInfo list(QuestionQueryDTO questionQueryDTO);

    // Result<?> add(QuestionDTO questionDTO);
    boolean add(QuestionAddDTO questionAddDTO);

    Result<QuestionDetailVO> detail(Long questionId);

    // Result<?> updateById(QuestionDTO questionDTO);

    int edit(QuestionEditDTO questionEditDTO);

    // Result<?> deleteById(Long questionId);

    int delete(Long questionId);
}
